<script>
	export default {
		onLaunch: function(options) {
			console.log('App Launch')
			if(options.query){
				this.$store.commit('setQuery',options.query)
				if(options.query.test&&options.query.test=='vlion'){
					util.vConsole();
				}
				try{
					uni.getSystemInfo({
						success:(res)=>{
							this.$store.commit('setDevice',res);
						}
					})
				}catch(e){
					//TODO handle the exception
				}				
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	*{box-sizing: border-box;}
	iframe{
		z-index: 9999999;
	}
	page{
		width: 100%;
		min-height:100vh;
		background-color: $uni-bg-color;
		font-size: $uni-font-size-base;
		color: $uni-text-color;
	}
	image{width: 100%;height: auto;}
	.line2{
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
	.line1{
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}
	.inset-group{
		border-radius: 20rpx;
		overflow: hidden;
		margin-bottom: 25rpx;
		background: #fff;
	}
</style>
